package com.stethodemo;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by wom on 2015/9/1.
 */
public class SqlTest extends SQLiteOpenHelper {

    public SqlTest(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

        db.execSQL("CREATE TABLE tddd_contact(name varchar(50),phone varchar(50)) ");
        db.execSQL("insert into tddd_contact(name,phone)values('williammu','18297927880')");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
